package util;

import pojo.User;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/*
* 个人账户信息存储
* */
public class DBUtil {
    User user=new User();

    public Map<String, User> map(){
        Map<String,User> map= new HashMap<>();
        map.put("123456",new User("123456","123321","张三","110",10000.00));
        map.put("111111",new User("111111","123321","李四","110",12000.00));
        map.put("222222",new User("222222","123321","王五","110",13000.00));
        map.put("333333",new User("333333","123321","黑崎","110",13000.00));
        map.put("444444",new User("444444","123321","坏机","110",14000.00));
        return map;
    }
    public String  findAllMap(){
        Map<String, User> map = map();
        String a=null;
        for (Map.Entry<String, User> entry : map.entrySet()) {
            a=entry.getKey()+entry.getValue();
        }
        return a;
    }





}
